Gemini CLI:コマンドライン引数
$ gemini --help
code:out.txt
Gemini CLI - Launch an interactive CLI, use -p/--prompt for non-interactive
mode
Commands:
gemini mcp Manage MCP servers
gemini extensions <command> Manage Gemini CLI extensions.
Positionals:
query Positional prompt. Defaults to one-shot; use -i/--prompt-interactive
for interactive.
Options:
-p, --prompt Prompt. Appended to input on stdin (if any).
[deprecated: Use the positional prompt instead. This flag will be removed in
-i, --prompt-interactive Execute the provided prompt and continue in
-s, --sandbox Run in sandbox? boolean -y, --yolo Automatically accept all actions (aka YOLO
mode, see
--approval-mode Set the approval mode: default (prompt for
approval), auto_edit (auto-approve edit
tools), yolo (auto-approve all tools)